﻿using System.Data;
using MyWeb.Data;

namespace MyWeb.Business
{
	public class tblDiscountService
	{
		private static readonly tblDiscountDAL db = new tblDiscountDAL();
		#region[tblDiscount_GetById]
		public static DataTable tblDiscount_GetById(tblDiscountInfo Data)
		{
			return db.tblDiscount_GetById(Data);
		}
		#endregion
		#region[tblDiscount_GetByAll]
		public static DataTable tblDiscount_GetByAll()
		{
			return db.tblDiscount_GetByAll();
		}
		#endregion
		#region[tblDiscount_GetByTop]
		public static DataTable tblDiscount_GetByTop(string Top, string Where, string Order)
		{
			return db.tblDiscount_GetByTop(Top, Where, Order);}
		#endregion
		#region[tblDiscount_Insert]
		public static void tblDiscount_Insert(tblDiscountInfo Data)
		{
			 db.tblDiscount_Insert(Data);
		}
		#endregion
		#region[tblDiscount_Update]
		public static void tblDiscount_Update(tblDiscountInfo Data)
		{
			 db.tblDiscount_Update(Data);
		}
		#endregion
		#region[tblDiscount_Delete]
		public static void tblDiscount_Delete(string Data)
		{
			 db.tblDiscount_Delete(Data);
		}
		#endregion
		#region[tblDiscount_GetBy_sid]
		public static DataTable tblDiscount_GetBy_sid(string _sid)
		{
			 return db.tblDiscount_GetBy_sid(_sid);
		}
		#endregion
	}
}